@model IEnumerable<ShoppingWebPage.Models.Item>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<table>
    <tr>
        <th></th>
        <th>
            name
        </th>
        <th>
            description
        </th>
        <th>
            price
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Add To Cart", "AddToCart", "Carts", new { id=item.id },null)
        </td>
        <td>
			@item.name
        </td>
        <td>
			@item.description
        </td>
        <td>
			@String.Format("{0:c}", item.price)
        </td>
    </tr>
}

</table>


